<template>
	<view class="content">
		<!-- <view class="nav"> -->
		<!-- <uni-nav-bar statusBar title="订单详情" fixed backgroundColor="#F5F7F8" left-icon="left" @clickLeft="goback"> -->
		<!-- <block slot="right">
					<view class="location" @click="onCode">
						<view>核销</view>
						<image src="https://qiniu-cdn.maeiyun.com/imgs/order/code.png"></image>
					</view>
				</block> -->
		<!-- </uni-nav-bar> -->
		<!-- </view> -->
		<view class="status box">
			<!-- 状态:1=未支付,2=待使用,3=服务中/已出票,4=已使用,5=待评价,6=已评价,7=已退款,8=已取消 -->
			<!-- <view class="title">
				{{orderInfo.status == 1?'未支付':orderInfo.status == 2?'待使用':orderInfo.status == 3?"服务中/已出票":orderInfo.status == 4?'已使用':orderInfo.status == 5?'待评价':orderInfo.status == 6?'已评价':orderInfo.status == 7?'已退款':orderInfo.status == 8?'已取消':orderInfo.status == 99?'已过期':''}}
			</view> -->
			<view class="title" v-if="orderInfo.status==1">
				<text>未支付</text>

			</view>
			<view class="title" v-if="orderInfo.status==2">
				<text v-if="orderInfo.type == 1 && orderInfo.jiedan_time == 0 && orderInfo.return_status ==1">待接单</text>
				<text v-if="orderInfo.type == 1 && orderInfo.jiedan_time>0 && orderInfo.return_status ==1">已接单</text>
				<text v-if="orderInfo.type !=1&& orderInfo.return_status ==1">待使用</text>
				<!-- 退款状态:1=未退款,2=申请中,3=商家同意退款,4=已退款 -->
				<text v-if="orderInfo.return_status == 2">退款待审核</text>
				<text v-if="orderInfo.return_status == 3">商家同意退款/平台待处理</text>
				<text v-if="orderInfo.return_status == 4">已退款</text>
				<text v-if="orderInfo.sfter_sales == 2">投诉中</text>
				<text v-else-if="orderInfo.sfter_sales == 3">投诉已处理</text>
			</view>
			<view class="title" v-if="orderInfo.status==3">
				<text>服务中/已出票</text>
			</view>
			<view class="title" v-if="orderInfo.status==4">
				<text v-if="orderInfo.sfter_sales == 2">投诉中</text>
				<text v-else-if="orderInfo.sfter_sales == 3">投诉已处理</text>
				<text v-else>已使用</text>
			</view>
			<view class="title" v-if="orderInfo.status==5">
				<text v-if="orderInfo.sfter_sales == 2">投诉中</text>
				<text v-else-if="orderInfo.sfter_sales == 3">投诉已处理</text>
				<text v-else>待评价</text>
			</view>
			<view class="title" v-if="orderInfo.status==6">
				<text v-if="orderInfo.sfter_sales == 2">投诉中</text>
				<text v-else-if="orderInfo.sfter_sales == 3">投诉已处理</text>
				<text v-else>已评价</text>
			</view>
			<view class="title" v-if="orderInfo.status==7">
				<text>已退款</text>
			</view>
			<view class="title" v-if="orderInfo.status==8">
				<text>已取消</text>
			</view>
			<view class="title" v-if="orderInfo.status == 99">
				<text>已过期</text>
			</view>

			<view class="time" v-if="orderInfo.status == 1">
				<view>
					<uni-dateformat :date="orderInfo.closetime_text" format="yyyy-MM-dd hh:mm"></uni-dateformat>
				</view>
				<view class="time-style" v-if="orderInfo.close_order_time > 0">若未付款，订单将于<u-count-down
						separator-color="#CB2C25" color="#CB2C25" :show-days="false" :show-hours="false" font-size="26"
						ref="uCountDown" :timestamp="orderInfo.close_order_time"
						@end="onTimeOver(index)"></u-count-down>后自动关闭</view>
			</view>
		</view>
		<view class="people box">
			<image :src="orderInfo.technician&&orderInfo.technician.work_image[0]" mode="aspectFill"></image>
			<view class="right">
				<view class="name" @click="toTen">
					<text
						v-if="orderInfo.technician">{{orderInfo.technician.technician_nickname || orderInfo.technician.real_name}}</text>
					<uni-icons type="forward" size="16" color="#333"></uni-icons>
				</view>
				<uni-rate :touchable="false" :value="orderInfo.technician && orderInfo.technician.star" readonly
					activeColor="#EF5233" />
			</view>
		</view>

		<view class="date box">
			<view class="title">预约时间</view>
			<view class="time">
				<view>{{orderInfo.subscribe_time}}</view>
			</view>
		</view>
		<view class="date box">
			<view class="store-phone-lines">
				<image class="store-img" :src="orderInfo.store_info && orderInfo.store_info.logo" mode=""></image>
				<view class="store-name">{{orderInfo.store_info && orderInfo.store_info.store_name}}</view>
				<view class="store-phone">
					<image src="https://qiniu-cdn.maeiyun.com/imgs/shangjia/phone.png" @click="callPhone" mode="">
					</image>
				</view>
			</view>

		</view>
		<view class="address box">
			<view class="block_address">
				<image src="/static/order/address.png"></image>
				<view class="detail">
					<view class="address_content">
						{{orderInfo.address && orderInfo.address.province+'-'+orderInfo.address && orderInfo.address.city+'-'+orderInfo.address && orderInfo.address.district}}
						{{orderInfo.address && orderInfo.address.address}}
					</view>
					<view class="phone">
						<text>{{orderInfo.real_name}}</text>
						<view>{{orderInfo.mobile}}</view>
					</view>
				</view>
			</view>
		</view>
		<view class="prudect box">
			<view class="prudect_detail">
				<view class="shop">
					<image :src="orderInfo.service && orderInfo.service.image" mode="aspectFill"></image>
					<view class="detail">
						<view class="title">{{orderInfo.service && orderInfo.service.spec_name}}</view>
						<view class="text">{{orderInfo.subscribe_time}}</view>
						<view class="text">单价:￥{{orderInfo.service && orderInfo.service.price}}</view>
						<view class="text" v-if="!Array.isArray(orderInfo.add_time_info)">
							加钟:￥{{orderInfo.add_time_info&&orderInfo.add_time_info.price}}
						</view>
						<view class="text" v-if="orderInfo.add_time_info && orderInfo.add_time_info.add_time">
							加钟时间:{{orderInfo.add_time_info&&orderInfo.add_time_info.add_time}}分钟
						</view>
					</view>
				</view>
				<view class="num">X 1</view>
			</view>
			<view class="coupon" v-if="orderInfo.user_ticket_id>0">
				<view class="title">代金券</view>
				<view class="text">
					<text>- ¥ {{orderInfo.ticket_price}}</text>
					<!-- <uni-icons type="forward" size="18" color="#333333"></uni-icons> -->
				</view>
			</view>
			<view class="price">
				{{orderInfo.status == 1 ? '待支付金额' : '支付金额'}}：<text>¥ {{orderInfo.price}}</text>
			</view>
		</view>

		<view class="order_sn box">
			<view class="text">
				<text>订单编号</text>
				<view>{{orderInfo.order_sn}}</view>
			</view>
			<view class="text">
				<text>下单时间</text>
				<view>{{orderInfo.createtime}}</view>
			</view>
			<view class="text" v-if="orderInfo.pay_time != 0" style="margin-bottom: 0;">
				<text>支付时间</text>
				<view>
					<uni-dateformat :date="orderInfo.pay_time*1000" format="yyyy-MM-dd hh:mm:ss"></uni-dateformat>
				</view>
			</view>
		</view>

		<view class="btn">
			<!-- 暂未付款 -->
			<view class="btn_box" v-if="orderInfo.status == 1">
				<view style="flex: 1;" class="btn_orange" @click="payment">立即支付 {{orderInfo.price}}元</view>
				<view class="btn_black" @click="show= true">取消订单</view>
			</view>
			<!-- 已付款待使用 -->
			<view class="btn_box" v-if="orderInfo.status == 2">
				<view style="border: 1rpx solid #04A257;color: #04A257;" @click="show_start = true"
					v-if="orderInfo.return_status ==1 && orderInfo.jiedan_time>0">开始服务</view>
				<view class="btn_orange" @click="show= true" v-if="orderInfo.return_status ==1">退款</view>
				<view class="btn_orange" @click="show_close = true"
					v-if="orderInfo.return_status == 2 || orderInfo.return_status == 3">取消退款</view>
			</view>
			<!-- 服务中 -->
			<view class="btn_box" v-if="orderInfo.status == 3 ">
				<view class="btn_black" v-if="orderInfo.return_status ==1" @click="show= true">退款</view>
				<view class="btn_black" @click="show_complant = true">订单结束</view>
				<view class="btn_orange" @click="isshow = true" v-if="Array.isArray(orderInfo.add_time_info)"
					style="background-color: #fff;border: 1rpx solid #FFA126;color:#FFA126;">加钟
				</view>
			</view>
			<!-- 已使用 -->
			<view class="btn_box" v-if="orderInfo.status == 4 || orderInfo.status == 5">
				<view class="btn_yellow" @click="rebook">再次预定</view>
				<view class="btn_black" @click="evaluate">评价</view>
			</view>
			<view class="btn_box" v-if="orderInfo.status >=6 || orderInfo.return_status >1">
				<view class="btn_yellow" @click="rebook">再次预定</view>
			</view>
		</view>
		<uni-popup ref="code">
			<view class="block">
				<view :class="orderInfo.status >= 3?'code box errorCode':'code box'">
					<view>扫码开始服务</view>
					<image :src="qrcode"></image>
					<text>技师扫码服务倒计时开始</text>
				</view>
				<uni-icons :size="30" type="clear" color="#BEBEBE" @click="closeCode"></uni-icons>
			</view>
		</uni-popup>
		<u-popup v-model="isshow" mode="bottom" mask-close-able closeable height="679rpx" border-radius="20">
			<view class="inner-box-popup">
				<view class="time-title">
					加钟时间
				</view>
				<view class="time-list">
					<view :class="timeId == index?'select-time':''" v-for="(item,index) in timeConfig"
						@click="timeId = index" :key="index">{{index}}分钟</view>
				</view>
				<view class="price-lines">
					当前加钟金额 <text class="min">￥</text><text class="price">{{timeConfig[timeId]}}</text>
				</view>
				<view class="hint-text">
					加钟金额=（订单套餐金额/当前套餐时间*加钟时间）
				</view>
				<view class="right-pay" @click="addTime">
					立即支付
				</view>
			</view>
		</u-popup>
		<u-modal v-model="show" show-cancel-button
			:content="'是否'+((orderInfo.status == 2|| orderInfo.status == 3)?'退款':'取消')+'该订单'" mask-close-able
			@confirm="orderInfo.status==1?cancalOrder():returnMoney()"></u-modal>

		<u-modal v-model="show_start" show-cancel-button content="确保技师已到达并开始服务" mask-close-able
			@confirm="onStart"></u-modal>
		<u-modal v-model="show_complant" show-cancel-button content="确保技师已完成服务" mask-close-able
			@confirm="onComplant"></u-modal>
		<u-modal v-model="show_close" show-cancel-button content="确认取消退款" mask-close-able
			@confirm="closeReturnOrder"></u-modal>
	</view>
</template>

<script>
	import io from '../../../common/js/uni-socket.io.js'
	let Base64 = require('js-base64').Base64
	import {
		mapState
	} from 'vuex' //引入mapState
	import {
		number
	} from 'echarts'
	import Bignumber from '../../../common/js/bignumber.js'
	export default {
		computed: {
			...mapState({
				'userLocation': 'userLocation'
			}),
		},
		data() {
			return {
				rate: 4,
				order_id: 0,
				orderInfo: {},
				qrcode: '',
				content: 0,
				show: false,
				isshow: false,
				timeId: 15,
				timeConfig: {},
				id: 0, // 使用 marker点击事件 需要填写id
				title: 'map',
				latitude: 0,
				longitude: 0,
				covers: [{
					latitude: 39.909,
					longitude: 116.39742,
					iconPath: '../../../static/locicon.png',
					label: {
						content: "技师位置",
						textAlign: "center",
						bgColor: "#F0F4FF",
						padding: "10rpx",
						display: "ALWAYS",
						color: '#2779FF'
					}
				}],
				socket: {},
				star: 0,

				show_close: false,
				show_start: false,
				show_complant: false,
			}
		},
		onLoad(option) {
			var that = this
			this.order_id = option.order_id
			this.getOrderDetail()
			this.getTimeConfig()
		},
		methods: {
			closeReturnOrder() {
				let that = this
				this.request.httpTokenRequest({
					url: "/order/closeReturnOrder",
					method: "post"
				}, {
					order_id: this.order_id,
				}).then(res => {
					this.$util.msg(res.msg)
					if (res.code == 0) {
						this.getOrderDetail()
					}
				}, error => {})
			},
			onComplant() {
				let that = this
				this.request.httpTokenRequest({
					url: "/order/finishOrder",
					method: "post"
				}, {
					order_id: this.order_id,
				}).then(res => {
					this.$util.msg(res.msg)
					if (res.code == 0) {
						this.getOrderDetail()
					}
				}, error => {})
			},
			onStart() {
				let that = this
				this.request.httpTokenRequest({
					url: "/order/scanOrderQr",
					method: "post"
				}, {
					order_id: this.order_id,
				}).then(res => {
					this.$util.msg(res.msg)
					if (res.code == 0) {
						this.getOrderDetail()
					}
				}, error => {})
			},
			callPhone() {
				this.$util.makeCall(this.orderInfo.store_info.mobile)
			},
			onTimeOver(e) {
				this.orderInfo.status = 8
			},
			goback() {
				uni.navigateBack()
			},
			onCode() {
				this.$refs.code.open('center')
			},
			closeCode() {
				this.$refs.code.close()
			},
			rebook() {
				uni.navigateTo({
					url: '/otherpages/massage/massageDetail?id=' + this.orderInfo.service_id
				})
			},
			toTen() {
				uni.navigateTo({
					url: '/otherpages/technician/technician?id=' + this.orderInfo.technician_id
				})
			},
			evaluate() {
				uni.navigateTo({
					url: '/otherpages/order/operation?status=' + 5 + '&order_id=' + this.order_id + '&type=1'
				})
			},
			getOrderDetail() {
				var that = this
				this.request.httpTokenRequest({
					url: "order/getOrderInfo",
					method: "get"
				}, {
					order_id: this.order_id
				}).then(function(data) {
					if (data.code == 0) {
						that.orderInfo = data.data
						that.latitude = data.data.technician.lat
						that.longitude = data.data.technician.lng
						that.covers[0].latitude = data.data.technician.lat
						that.covers[0].longitude = data.data.technician.lng
						if (that.orderInfo.status == 1) {
							that.countdowm(data.data.closetime_text)
						} else if (that.orderInfo.status == 2) {
							// that.socket = io('ws://socket.maeiyun.com:2120', {
							// 	query: {},
							// 	transports: ['websocket'],
							// 	timeout: 5000
							// })
							// // 监听连接
							// that.socket.on('connect', (e) => {
							// 	that.socket.emit('login',  data.data.technician.id);
							// })
							// that.socket.on('technician_location_msg', function (socket) {
							//    var locData = JSON.parse(Base64.decode(socket))
							// 	that.latitude = locData.location.latitude
							//    	that.longitude =  locData.location.longitude
							//    	that.covers[0].latitude = locData.location.latitude
							//    	that.covers[0].longitude =  locData.location.longitude

							// });
							// // 监听失败
							// that.socket.on('error', () => {
							// 	console.log('连接失败')
							// })
							// // 监听断开
							// that.socket.on('disconnect', (error) => {
							// 	console.log('disconnect,', error);
							// 	console.log('已断开')
							// })
						}
					} else {}
				})
			},
			countdowm(timestamp) {
				let self = this;
				let timer = setInterval(function() {
					let nowTime = new Date();
					let endTime = new Date(timestamp);
					let t = endTime.getTime() - nowTime.getTime();
					if (t > 0) {
						let day = Math.floor(t / 86400000);
						let hour = Math.floor((t / 3600000) % 24);
						let min = Math.floor((t / 60000) % 60);
						let sec = Math.floor((t / 1000) % 60);
						hour = hour < 10 ? "0" + hour : hour;
						min = min < 10 ? "0" + min : min;
						sec = sec < 10 ? "0" + sec : sec;
						let format = '';
						if (day > 0) {
							format = `${day}天${hour}小时${min}分${sec}秒`;
						}
						if (day <= 0 && hour > 0) {
							format = `${hour}小时${min}分${sec}秒`;
						}
						if (day <= 0 && hour <= 0) {
							format = `${min}分${sec}秒`;
						}
						self.content = format;
					} else {
						clearInterval(timer);
						self.content = self.endText;
					}
				}, 1000);

			},
			getQrcode() {
				var that = this
				this.request.httpTokenRequest({
					url: "order/getOrderQr",
					method: "get"
				}, {
					order_id: this.order_id
				}).then(function(data) {
					if (data.code == 0) {
						that.qrcode = data.data.qr
					} else {}
				})
			},
			getTimeConfig() {
				var that = this
				this.request.httpTokenRequest({
					url: "order/getAddTimeConfig",
					method: "get"
				}, {
					order_id: this.order_id
				}).then(function(data) {
					if (data.code == 0) {
						that.timeConfig = data.data
					} else {}
				})
			},
			returnMoney() {
				var that = this
				this.request.httpTokenRequest({
					url: 'order/refund',
					method: "GET"
				}, {
					order_id: this.order_id,
					content: ""
				}).then(function(data) {
					if (data.code == 0) {
						that.$util.msg(data.msg)
						that.getOrderDetail()
					} else {
						that.$util.msg(data.msg)
					}
				})
			},
			cancalOrder() {
				var that = this
				this.request.httpTokenRequest({
					url: "order/closeServiceOrder",
					method: "get"
				}, {
					order_id: this.order_id
				}).then(function(data) {
					if (data.code == 0) {
						that.$util.msg("操作成功")
						that.getOrderDetail()
					} else {
						that.$util.msg(data.msg)
					}
				})
			},
			payment() {
				uni.navigateTo({
					url: "/otherpages/pay/pay?order_id=" + this.orderInfo.id
				})
			},
			addTime() {
				var that = this
				this.request.httpTokenRequest({
					url: "order/addTime",
					method: "POST"
				}, {
					order_id: this.order_id,
					time: this.timeId
				}).then(function(data) {
					if (data.code == 0) {
						that.$util.msg(data.msg)
						uni.redirectTo({
							url: '/otherpages/pay/pay?order_id=' + data.data.order_id
						})
					} else {
						that.$util.msg(data.msg)
					}
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		padding: 0 30rpx 150rpx 30rpx;
		// padding: calc(var(--status-bar-height)+44px) 30rpx 150rpx;
	}

	.box {
		padding: 30rpx;
		margin-bottom: 30rpx;
		background: #FFFFFF;
		border-radius: 10rpx;
	}

	// .nav {
	// 	position: fixed;
	// 	top: 0;
	// 	left: 0;
	// 	width: 100%;
	// 	background: #F5F7F8;
	// 	z-index: 99;
	// 	padding-top: var(--status-bar-height);
	// }

	.location {
		width: 153rpx;
		height: 64rpx;
		background: rgba(255, 255, 255, 0.7);
		border-radius: 32rpx;
		opacity: 0.71;
		backdrop-filter: blur(10px);
		line-height: 64rpx;
		display: flex;
		align-items: center;
		padding: 0 27rpx;
		box-sizing: border-box;

		image {
			width: 26rpx;
			height: 26rpx;
			margin-left: 13rpx;
		}

		view {
			font-size: 28rpx;
			font-family: PingFangSC, PingFang SC;
			font-weight: 400;
			color: #000000;
		}
	}

	.status {
		.title {
			font-size: 30rpx;
			font-weight: 600;
			color: #CB2C25;
			line-height: 42rpx;
		}

		.time {
			// display: flex;
			// align-items: center;
			// justify-content: space-between;
			margin-top: 12rpx;

			view {
				font-size: 26rpx;
				color: #1C1D1E;
				line-height: 37rpx;
			}

			.time-style {
				font-size: 26rpx;
				font-weight: 600;
				color: #CB2C25;
				line-height: 37rpx;
			}
		}
	}

	.people {
		padding: 30rpx 30rpx 20rpx;
		display: flex;
		align-items: center;

		image {
			width: 70rpx;
			height: 70rpx;
			border-radius: 50%;
			margin-right: 10rpx;
		}

		.right {
			.name {
				display: flex;
				align-items: center;

				text {
					font-size: 26rpx;
					padding-left: 6rpx;
					font-weight: 600;
					color: #333333;
					line-height: 37rpx;
				}
			}
		}
	}

	.date {
		display: flex;
		align-items: center;
		justify-content: space-between;

		.title {
			font-size: 28rpx;
			color: #151616;
			line-height: 40rpx;
		}

		.time {
			display: flex;
			align-items: center;

			view {
				font-size: 26rpx;
				font-weight: 600;
				color: #EC473E;
				line-height: 37rpx;
				margin: 0 12rpx 0 0;
			}

			.tag {
				width: 49rpx;
				height: 26rpx;
				background: #EC473E;
				border-radius: 4rpx;
				font-size: 20rpx;
				color: #FFFFFF;
				line-height: 26rpx;
				text-align: center;
				margin: 0 12rpx 0 0;
			}
		}
	}

	//
	.store-phone-lines {
		width: 100%;
		display: flex;
		align-items: center;
		font-size: 28rpx;
		color: #151616;

		.store-img {
			width: 80rpx;
			height: 80rpx;
			border-radius: 50%;
			margin-right: 10rpx;
		}

		.store-phone {
			display: flex;
			align-items: center;
			margin-left: auto;
			font-size: 24rpx;
			color: #151616;

			image {
				width: 23rpx;
				height: 23rpx;
			}
		}
	}

	.address {
		display: flex;
		justify-content: space-between;

		.icon {
			width: 20px;
			width: 20px;
		}

		.block_address {
			display: flex;

			.detail {
				flex: 1;
			}

			image {
				width: 32rpx;
				height: 30rpx;
				margin-right: 10rpx;
			}

			.address_content {
				display: flex;
				font-size: 30rpx;
				font-weight: 600;
				color: #151616;
				line-height: 42rpx;
			}

			.phone {
				display: flex;
				margin-top: 20rpx;

				text {
					font-size: 26rpx;
					color: #151616;
					line-height: 37rpx;
					margin-right: 20rpx;
				}

				view {
					font-size: 26rpx;
					color: #151616;
					line-height: 37rpx;
				}
			}
		}
	}

	.prudect {
		.prudect_detail {
			display: flex;
			align-items: flex-end;
			padding-bottom: 30rpx;
			border-bottom: 1rpx solid #E9E9E9;

			.shop {
				display: flex;
				flex: 1;

				image {
					width: 142rpx;
					height: 190rpx;
					margin-right: 23rpx;
				}

				.detail {
					flex: 1;

					.title {
						font-size: 28rpx;
						color: #656667;
						line-height: 40rpx;
					}

					.text {
						font-size: 24rpx;
						color: #656667;
						line-height: 33rpx;
						margin-top: 10rpx;
					}
				}
			}

			.num {
				font-size: 24rpx;
				color: #656667;
				line-height: 33rpx;
			}
		}

		.coupon {
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 20rpx 0;
			border-bottom: 1rpx solid #E9E9E9;

			.title {
				font-size: 30rpx;
				color: #0F0807;
				line-height: 42rpx;
			}

			.text {
				display: flex;
				align-items: center;

				text {
					font-size: 26rpx;
					font-weight: 600;
					color: #EF5233;
					line-height: 37rpx;
					margin-right: 10rpx;
				}
			}
		}

		.price {
			font-size: 24rpx;
			color: #333333;
			line-height: 33rpx;
			text-align: right;
			padding-top: 35rpx;

			text {
				font-size: 30rpx;
				color: #EF5233;
				line-height: 33rpx;
			}
		}
	}

	.order_sn {
		.text {
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-bottom: 28rpx;

			text {
				font-size: 30rpx;
				color: #0F0807;
				line-height: 42rpx;
			}

			view {
				font-size: 30rpx;
				color: #0F0807;
				line-height: 42rpx;
			}
		}
	}

	.code {
		display: flex;
		align-items: center;
		flex-direction: column;
		box-sizing: border-box;
		background: url(https://qiniu-cdn.maeiyun.com/imgs/order/service_code.png) 0 0 no-repeat;
		background-size: 100%;
		height: 569rpx;
		width: 680rpx;
		margin: 0 auto;

		view {
			font-size: 34rpx;
			font-weight: 600;
			color: #691100;
			line-height: 40rpx;
		}

		image {
			width: 252rpx;
			height: 252rpx;
			margin: 100rpx 0 31rpx;
		}

		text {
			font-size: 24rpx;
			color: #A9A9A9;
			line-height: 40rpx;
		}

	}

	.errorCode {
		filter: grayscale(100%);
		-webkit-filter: grayscale(100%);
	}

	.block {
		display: flex;
		align-items: center;
		flex-direction: column;
	}

	.btn {
		width: 100vw;
		height: 120rpx;
		background: #FFFFFF;
		border-radius: 10rpx;
		position: fixed;
		bottom: 0;
		left: 0;

		.btn_box {
			width: 100%;
			height: 100%;
			display: flex;
			align-items: center;
			flex-direction: row-reverse;

			view {
				width: 219rpx;
				height: 88rpx;
				border-radius: 44rpx;
				line-height: 88rpx;
				text-align: center;
				font-size: 34rpx;
				margin: 0 15rpx;
			}

			.btn_orange {
				color: #FFFFFF;
				background: #EF5233;
				border: 1rpx solid #EF5233;
			}

			.btn_black {
				border: 1rpx solid #C6C6C6;
				color: #A8A8A8;
			}

			.btn_yellow {
				border: 1rpx solid #FFA126;
				color: #FFA126;
			}
		}
	}

	.inner-box-popup {
		background: url('https://qiniu-cdn.maeiyun.com/imgs/massage/bg-order.png')no-repeat;
		background-size: 100%;
		padding-top: 29rpx;
		box-sizing: border-box;
		height: 100%;
		padding: 29rpx 30rpx 0 30rpx;

		.time-title {
			font-size: 34rpx;
			font-family: PingFangSC, PingFang SC;
			font-weight: 600;
			color: #333333;
			text-align: center;
		}

		.time-list {
			display: flex;
			align-items: center;
			justify-content: space-between;
			// padding: 0 30rpx;
			margin-top: 76rpx;

			view {
				width: 146rpx;
				height: 60rpx;
				border-radius: 30rpx;
				border: 1rpx solid #D7D7D7;
				text-align: center;
				line-height: 60rpx;
				font-size: 26rpx;
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				color: #545454;
			}

			.select-time {
				border: 1rpx solid #EF5233;
				color: #EF5233;
				font-weight: bold;
				background-color: #FDEDEA;
			}
		}

		.price-lines {
			font-size: 26rpx;
			font-family: PingFangSC, PingFang SC;
			font-weight: 400;
			color: #545454;
			text-align: right;
			margin-top: 159rpx;

			.min {
				font-size: 22rpx;
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				color: #EC2700;
			}

			.price {
				font-size: 50rpx;
				font-family: PingFangSC, PingFang SC;
				font-weight: 500;
				color: #EF5233;
			}
		}

		.hint-text {
			font-size: 22rpx;
			font-family: PingFangSC, PingFang SC;
			font-weight: 400;
			color: #AFAFAF;
			height: 68rpx;
			background: #F4F4F4;
			border-radius: 10rpx;
			line-height: 68rpx;
			text-align: center;
			margin-top: 20rpx;
		}

		.right-pay {
			height: 88rpx;
			background: #EF5233;
			border-radius: 44rpx;
			font-size: 34rpx;
			font-family: PingFangSC, PingFang SC;
			font-weight: 400;
			color: #FFFFFF;
			text-align: center;
			line-height: 88rpx;
			margin-top: 31rpx;
		}
	}
</style>